package com.qiaofang.applet.common.client.weixin;

/**
 * @author junze.liu
 */
public class WxConfig {

    public static final String APP_ID = "appid";

    public static final String APP_SECRET = "secret";

    public static final String JS_CODE = "js_code";

    public static final String GRANT_TYPE = "grant_type";

    public static final String AUTHORIZATION_CODE = "authorization_code";

    public static final String GRANT_TYPE_VALUE1 = "client_credential";

    public static final String ACCESS_TOKEN = "access_token";

    public static final String SCENE = "scene";

    public static final String PAGE = "page";

    public static final String LINE_COLOR = "line_color";

    public static final String IS_HYALINE = "is_hyaline";

    public static final String WIDTH = "width";

    public static final String AUTO_COLOR = "auto_color";

    public static final String PATH = "path";


    /**
     * 获取小程序access_token接口：
     * https://developers.weixin.qq.com/miniprogram/dev/api/open-api/access-token/getAccessToken.html
     */
    public static final String ACCESS_TOKEN_URI = "https://api.weixin.qq.com/cgi-bin/token";

    /**
     * 小程序登陆接口：
     * https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/login/auth.code2Session.html
     */
    public static final String JS_CODE_URI = "https://api.weixin.qq.com/sns/jscode2session";

    /**
     * 获取小程序码接口：无限次数
     * https://developers.weixin.qq.com/miniprogram/dev/api/open-api/qr-code/getWXACodeUnlimit.html
     */
    public static final String QR_CODE_URI = "https://api.weixin.qq.com/wxa/getwxacodeunlimit";

    /**
     * 获取小程序码接口：总共10W次
     * https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/qr-code/wxacode.get.html
     */
    public static final String GET_WXA_CODE = "https://api.weixin.qq.com/wxa/getwxacode";

    /**
     * 获取小程序订阅消息
     * https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/subscribe-message/subscribeMessage.send.html
     */
    public static final String GET_SUBSCRIBE_URI = "https://api.weixin.qq.com/cgi-bin/message/subscribe/send?access_token=%s";



}
